#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void f(char arr[],int x)
{
	int left = 0;
	int right = x-1;
	while (left <= right)
	{
		char a = arr[left];
		arr[left] = arr[right];
		arr[right] = a;
		left += 1;
		right -= 1;
	}
}
int main()
{
	char arr[] = "asdfg";
	int sz = strlen(arr);
	f(arr,sz);
	return 0;
}